<?php

namespace app\admin\validate;

use think\Validate;

class Notice extends Validate
{
    protected $scene = [
        'EditNotice' => ['title','summary','content'],
    ];

    protected $rule =   [
        'content' => 'require',
        'title' => 'require',
        'summary' => 'require|max:10',
    ];

    protected $message  =   [

        'content.require' => '消息通知内容必须填写',
        'summary.max' => '消息简介字数不能超过十个字',
        'title.require' => '标题必须填写',
        'summary.require' => '消息简介必须填写',


    ];

}
